Basics of C Language
Basics of C Language: Overview
This topic covers concepts, such as Functions and Classes in C/C++, Programming in C/C++, Arithmetic Operator, Relational Operator, Logical Operator, Operators in C/C++, Functions in C/C++, Constant in C/C++, Assignment Operator, Putchar, etc.
Important Questions on Basics of C Language
What will be the output of the following C code?
If following commands are used to run(considering myfile exists)?
gcc -otest test.c
./test < myfile
#include <stdio.h>
int main()
{
char c = 'd';
putchar(c);
}

What is the output of this program?
#include <stdio.h>
int demo()
{
static int i = 0;
printf("%d ",i++);
}
int main()
{
for(int j = 0 ; j < 5 ; j++ )
{
demo();
}
}

Predict the output of following program.
#include <stdio.h>
int main()
{
int a=10;
int b=2;
int c;
c=(a & b);
printf("c= %d",c);
return 0;
}

In C programming language, which of the following type of operators have the highest precedence?

Which among the following is NOT a logical or relational operator?

What is the result of logical or relational expression in C?

void main()
{
int i=0,j-1,k=1,m;
m= i++ || j++ || k++
printf("%d %d %d %d", m, i, j, k)
}

Which of the following is not a valid variable name declaration?

What will be the output of the following code snippet?
#include <stdio.h>
int main() {
int a = 3, b = 5;
int t = a;
a = b;
b = t;
printf("%d %d", a, b);
}

Which is the part of the structure of a C program?

Which is Procedural Oriented language?

Study the following statement
for
{Print ; }
What will be the output?

The following programme fragment
int
print

The following programme fragment
int
print

The following programme fragment
for ;
print ;
result in :

Study the following statement
What will it print?

Study the following programme fragment
putchar
What it does?


From the following comments about the operator, which are correct?

means
